import Cookies from "js-cookie";

const MapDian = "map-map";
const TokenKey = "vue_admin_template_token";
const TokenTime = "setTime";

export function getToken() {
  return Cookies.get(TokenKey);
}

export function setToken(token) {
  return Cookies.set(TokenKey, token);
}

export function removeToken() {
  return Cookies.remove(TokenKey);
}
export function setMapDian(Map) {
  return Cookies.set(MapDian, Map);
}
export function getMapDian() {
  return Cookies.get(MapDian);
}
export function setTiemeout() {
  return Cookies.set(TokenTime, +new Date());
}

export function getTimeout() {
  return Cookies.get(TokenTime);
}
